<?php

include 'Bot.php';
include 'RedmineApi.php';


$dbus = new Dbus(Dbus::BUS_SESSION, true);

$n = $dbus->createProxy('com.Skype.API', '/com/Skype', 'com.Skype.API');
$n->Invoke('NAME INVITE');
$n->Invoke('PROTOCOL 8');

$dbus->registerObject('/com/Skype/Client', 'com.Skype.API.Client', 'Bot');

$users = Bot::getInstance()->getUsers();

foreach($users as $user) {
    if ($user['skype']) {

    }
}
